package com.rm.zeyou.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 技师分成等级表
 * </p>
 *
 * @author YanYang
 * @since 2025-03-20 15:14:10
 */
@Getter
@Setter
@TableName("t_grade_config")
@ApiModel(value = "GradeConfig对象", description = "技师分成等级表")
public class GradeConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("技师分成等级ID")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("等级名称")
    @TableField("grade_name")
    private String gradeName;

    @ApiModelProperty("分成比例")
    @TableField("split_proportions")
    private BigDecimal splitProportions;

    @ApiModelProperty("第一次加钟分成比例")
    @TableField("continuation_proportions")
    private BigDecimal continuationProportions;

    @ApiModelProperty("第二次加钟分成比例")
    @TableField("continuation_second_proportions")
    private BigDecimal continuationSecondProportions;

    @ApiModelProperty("升级套餐分成比例")
    @TableField("upgrade_proportions")
    private BigDecimal upgradeProportions;

    @ApiModelProperty("最低成交额")
    @TableField("mini_turnover")
    private BigDecimal miniTurnover;

    @ApiModelProperty("续钟率")
    @TableField("continuation_rate")
    private BigDecimal continuationRate;

    @ApiModelProperty("逻辑删除（0=未删除，1=已删除）")
    @TableField("is_delete")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty("创建时间")
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
      @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
